package com.yunchao.eeprint.service.impl;

import com.yunchao.eeprint.entity.PlatformTenant;
import com.yunchao.eeprint.entity.VO.PlatformTenantsVO;
import com.yunchao.eeprint.mapper.PlatformMapper;
import com.yunchao.eeprint.service.PlatformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class PlatformServiceImpl implements PlatformService {

    @Autowired
    private PlatformMapper platformMapper;


    @Override
    public List<PlatformTenant> findTenants(int index, int limit) {
        System.out.println(platformMapper.findTenants(index, limit));
        return null;
    }

    @Override
    public int countTenants() {
        System.out.println(platformMapper.countTenants());
        return 0;
    }

    @Override
    public void save(PlatformTenant platformTenant) {
        platformMapper.save(platformTenant);
    }
}
